Skip to content

[Feature] : UI error handling with Zustand - #303

Draft
Sam007Yeah wants to merge 6 commits into
mainfrom
UI-Error-Handling
Draft

Sam007Yeah wants to merge 6 commits into
mainfrom
UI-Error-Handling

Conversation

@Sam007Yeah

Copy link
Copy Markdown
Collaborator

SUMMARY

Introducing Error handling on the UI. We now use Zustand as an error store so bascially nobody owns the error state but it can be triggered via the AxiosInterceptors or anywhere in the application smoothly without anybody having exclusive ownership of the error component.

Issue Link

Closes #302

Changes Summary

Introducing the following Changes:

  1. Adding Zustand as a dependency
  2. Using its error store capabilities to abstract the error layer to exist outside React.
  3. Unit Tests and respective documentation in the code.

To be added:

i18n implementation and extracting the error messages and keys. It will be a bigger change that can be part of the same backlog but taken as a separate task to not make this a bigger PR than it needs to be.

Testing Done

Unit Tests are done.

Need to do: E2E testing once with backend, was slowed due to production being down (will mark as Do not merge for now)

Pull Request Checklist

Tasks Yes/No
Issue Linked? Yes
Timeline of the Issue is updated? Yes
Do these changes affect local development in anyway? (if yes mention effects in additional comments) Will update documentation as a final commit before merging

@coderabbitai

coderabbitai Bot commented Dec 2, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

@Sam007Yeah Sam007Yeah added the do not merge This is an experimental PR that tests something. Do not merge the PR if it has this label. label Dec 2, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not merge This is an experimental PR that tests something. Do not merge the PR if it has this label.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add Zustand Error Stores

1 participant